package com.vue.demo;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.core.env.Environment;

/**
 * @author xiaojf
 */
@Slf4j
@SpringBootApplication(scanBasePackages = "com.vue")
@MapperScan("com.vue.demo.mapper.*")
@ServletComponentScan(basePackages = "com.vue")
public class VueDemoApplication {

    public static void main(String[] args) {
        SpringApplication app = new SpringApplication(VueDemoApplication.class);
        Environment env = app.run(args).getEnvironment();
        log.info("启动成功！！");
        log.info("VueDemo地址: \thttp://127.0.0.1:{}", env.getProperty("server.port"));
    }

}
